//**********************************************************************************
// Klasse OutputListPanel - Panel für Listen-Ansicht 
//
//
//**********************************************************************************

package binarytree.view.output;

import java.awt.BorderLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;


public class OutputListPanel extends JPanel {
    
    private final JScrollPane scrollPane;
    private final OutputList outputList;
    private final OutputSelectListOrderPanel outputSelectListOrderPanel;

    public OutputListPanel() {
        setLayout(new BorderLayout());
        outputList = new OutputList();
        scrollPane = new JScrollPane();
        scrollPane.setViewportView(outputList);
        outputSelectListOrderPanel = new OutputSelectListOrderPanel();
        JLabel label = new JLabel("Löschen: Wähle Knoten");
        add(label, BorderLayout.PAGE_START);
        add(scrollPane, BorderLayout.CENTER);
        add(outputSelectListOrderPanel, BorderLayout.PAGE_END);
    }

    public OutputList getOutputList() {
        return outputList;
    }

    public OutputSelectListOrderPanel getOutputSelectListOrderPanel() {
        return outputSelectListOrderPanel;
    }
    
}
